from django.urls import path
from Labyrinth_app import views

app_name = 'Labyrinth_app'
urlpatterns = [
    path("index", views.index, name="index"),
    path("login", views.login_lab, name="login_lab"),
    path("generate",views.generate,name="generate"),
    path("save",views.save,name="save"),
    path('generate_pro/<user_id>',views.generate_id_pro1,name='generate_id_pro'),
    path('generate/<user_id>',views.generate_id,name='generate_id'),
    # 初始迷宫配置
    path("labyrinth_sql_save",views.labyrinth_sql_save,name="labyrinth_sql_save"),
    # 已走迷宫配置
    path("labyrinth_future_sql_save",views.labyrinth_future_sql_save,name="labyrinth_future_sql_save"),

    path('api/game-state/', views.get_game_state, name='get_game_state'),
    path('api/move-player/', views.move_player, name='move_player'),
    path('api/switch-player/', views.switch_player, name='switch_player'),
    path('api/reset-players/', views.reset_players, name='reset_players'),

    path("play/<play_id>",views.play,name="play"),
    path("labyrinth_future_sql_save_common/<play_id>",views.labyrinth_sql_save_common,name="labyrinth_sql_save_common"),

]